From: Ingo Heinrich Date: Sat, 4 Mar 2023 11:17:50 +0000 (+0100) Subject: luci-mod-status: nftables add counter and comment for empty match X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=8c7c56f4e415a3b80bf91c98aa02a638111bef51;p=project%2Fluci.git luci-mod-status: nftables add counter and comment for empty match Signed-off-by: Ingo Heinrich --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js index d5faedc4dc..d891526d04 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js @@ -515,7 +515,7 @@ return view.extend({ } if (empty) - dom.content(row.childNodes[0], E('em', [ _('Any packet', 'nft match any traffic') ])); + dom.append(row.childNodes[0], E('span', { 'class': 'ifacebadge' }, '%h'.format(_('Any packet', 'nft match any traffic')))); return row; },